package com.hp.service.impl;

import java.util.List;

import com.hp.dao.CommodityDao;
import com.hp.entity.Commodity;
import com.hp.service.CommodityService;

public class CommodityServiceImpl implements CommodityService {
	private CommodityDao commoditydao;
	
	
	public void setCommoditydao(CommodityDao commoditydao) {
		this.commoditydao = commoditydao;
	}


	@Override
	public List findCommodity(String name) {
		commoditydao.findCommodityByName(name);
		return null;
	}


	@Override
	public List findAllCommodity() {
		return commoditydao.findAllCommodity();
	}


	@Override
	public Commodity findCommodityByCid(Integer id) {
		return commoditydao.selectCommodity(id);
	}

}
